package com.dobest.securitydemo.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Copyright © 2018胡建松. All rights reserved.
 *
 * @Package: com.dobest.securitydemo.web
 * @author: hujiansong
 * @date: 2018/7/18 11:32
 * @version: V1.0
 */
@Controller
public class UserController {

    @GetMapping("/user/login")
    public String loginPage(){
        return "login";
    }

    @GetMapping("/user/reg")
    @ResponseBody
    public String  reg(){
        return "reg";
    }

}
